<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        class Person{
            constructor(name,age){
                this.name1 = name;
                this.age = age;
            }
            static gender = "男";
            static say = () =>{
                console.log("我爱你")
            }
        }
        let obj = new Person("张三",18);
        // console.log(obj.name1,obj.age);
        // console.log(Person.name1,Person.age);

        // console.log(obj.gender);
        // console.log(Person.gender);


        // obj.say()
        Person.say()
    </script>
</body>
</html>